This patch adds "wbinvd" instruction emulation for vm86 mode.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 27 Sep 2005 14:11:07 +0000 (15:11 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 27 Sep 2005 14:11:07 +0000 (15:11 +0100)
This is needed when we bring up AP of SMP VMX guest.

Signed-off-by: Xin Li <xin.b.li@intel.com>
tools/firmware/vmxassist/vm86.c

index 27b0bf634014fb631b761914aa4d4fcc6dee8f8e..750e58a14a961225cf9e3e2d26b906657721b833 100644 (file)
@@ -752,6 +752,9 @@ opcode(struct regs *regs)
                                        goto invalid;
                                }
                                break;
+                       case 0x09: /* wbinvd */
+                               asm volatile ( "wbinvd" );
+                               return OPC_EMULATED;
                        case 0x20: /* mov Rd, Cd (1h) */
                        case 0x22:
                                if (!movcr(regs, prefix, opc))